import os
import pytest
from unit_test.utils.read_env import read_env

@pytest.fixture(scope="function")
def env_dict():
    """Get a dictionary of environment variables."""
    env_path = os.path.join(os.path.dirname(__file__), '.env')
    env_dict = read_env(env_path)
    return env_dict

def pytest_configure(config):
    config.addinivalue_line(
        "markers", "smoke: 标记为 smoke 测试用例（用于快速验证核心功能）"
    )